Quartz: Set the drag context target list
authorJohn Ralls <jralls@ceridwen.us>
Thu, 10 Oct 2013 22:21:35 +0000 (15:21 -0700)
committerJohn Ralls <jralls@ceridwen.us>
Thu, 10 Oct 2013 22:37:27 +0000 (15:37 -0700)
So that gdk_drag_context_list_targets() actually returns something.

gdk/quartz/gdkdnd-quartz.c
gtk/gtkdnd-quartz.c

index 6a1fc7ca6605ec5efb1c7a6aba3203291245910a..b2841151c0c6407cb05e4332aabd02b0b6410a69 100644 (file)
@@ -44,6 +44,8 @@ _gdk_quartz_window_drag_begin (GdkWindow *window,
                                                   NULL);
   _gdk_quartz_drag_source_context->is_source = TRUE;
 
+  _gdk_quartz_drag_source_context->targets = targets;
+
   gdk_drag_context_set_device (_gdk_quartz_drag_source_context, device);
 
   return _gdk_quartz_drag_source_context;
index fd8f2ccf2ad36ecca298762f70e10ef231d34295..ff37b5820096285ccc839b4cbef457884460d56b 100644 (file)
@@ -1248,7 +1248,7 @@ gtk_drag_begin_internal (GtkWidget         *widget,
   window = [(id<GdkNSView>)[nswindow contentView] gdkWindow];
   g_return_val_if_fail (nsevent != NULL, NULL);
 
-  context = gdk_drag_begin (window, NULL);
+  context = gdk_drag_begin (window, target_list->list);
   g_return_val_if_fail (context != NULL, NULL);
 
   info = gtk_drag_get_source_info (context, TRUE);